<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/9/17
 * Time: 8:54
 */
use yii\helpers\Html;
use yii\helpers\Url;
use frontend\models\Goods;

$goods = Goods::find()->where(['id' => $model['gid']])->one();
?>
<div class="showorderListss" style="height: 49px;">
    <div class="box_inline goodsli" style="padding:5px 5px 5px 8px;border-top: 1px solid #cccccc; " id="gidli_5126 ">
        <div class="liwd30 detcart" style="width:30%; text-align:left;">
            <?= $goods->name;?>
        </div>
        <div class="liwd30 detcart" style="width:20%; text-align:left;">
            <?=  $goods->price / 100;?> / 元
        </div>
        <div class="liwd30 detcart" style="width:30%; text-align:center;">
            <div style="width:90px; height:38px; line-height:38px;">
                <span class="addbtn" data-href="<?=Url::toRoute(['cart/add', 'gid' => $model['gid'], 'num' => 1])?>"><img src="http://m6.waimairen.com/templates/m7/public/wxsite/images/showcart-jian.png"></span>
                <span class="shuliang gdhd"><?= $model['num'];?></span>
                <span class="downdbtn" data-href="<?=Url::toRoute(['cart/down', 'gid' => $model['gid'], 'num' => 1])?>"><img style="width:21px;" src="http://m6.waimairen.com/templates/m7/public/wxsite/images/showcart-jian.png"></span>
            </div>
        </div>

        <div class="liwd30 delcart" style="width:20%; text-align:left;">
            <span class="delbtn" data-href="<?=Url::toRoute(['cart/del', 'gid' => $model['gid']])?>"><button class="btn btn-danger btn-sm center-block">删除</button></span>
        </div>
    </div>
</div>
